package com.djzhou.gmms.service.dictionary.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.stereotype.Service;

import com.djzhou.gmms.model.dictionary.TbDictionaryType;
import com.djzhou.gmms.model.entity.PageBean;
import com.djzhou.gmms.model.user.VoResource;
import com.djzhou.gmms.service.base.impl.BaseServiceImpl;
import com.djzhou.gmms.service.dictionary.DictionaryTypeService;

public class DictionaryTypeServiceImpl  extends BaseServiceImpl implements DictionaryTypeService{

	@Override
	public void add(TbDictionaryType t) {
		dictionaryTypeDAO.insert(t);
		
	}

	@Override
	public void delete(Integer id) {
		dictionaryTypeDAO.delete(TbDictionaryType.class,id);
		
	}

	@Override
	public TbDictionaryType queryById(Integer id) {
		
		return dictionaryTypeDAO.queryByID(TbDictionaryType.class, id);
	}

	@Override
	public List<TbDictionaryType> queryList(HashMap<String, Object> hashMap) {
		String hql="from TbDictionaryType where deleteFlag=0";
		return dictionaryTypeDAO.query(hql);
	}

	@Override
	public PageBean<TbDictionaryType> queryPageBean(
			HashMap<String, Object> hashMap, int pageSize, int currentPage) {
		
		return null;
	}

	@Override
	public void update(TbDictionaryType t) {
		dictionaryTypeDAO.update(t);
		
	}
	@Override
	public VoResource query4AutoComplete(HashMap<String, Object> hashMap, String sidx,
			String sord, int pageSize, int currentPage) {
		// TODO Auto-generated method stub
		return null;
	}

}
